import Vue from 'vue'

import App from './App'
// import router from '../main'
import store from '../../store'
import MyStorage from '../../plugins/MyStorage'

Vue.use(MyStorage)

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.config.productionTip = false

Vue.prototype.$electron.ipcRenderer.on('hideScreenshotWindow', () => {
  store.dispatch('setScreenshotWindowShow', false)
})

/* eslint-disable no-new */
new Vue({
  components: {App},
  // router,
  store,
  template: '<App/>'
}).$mount('#app')
